package com.fjec.info.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

/**
 * <p>
 * 025.资讯表
 * </p>
 *
 * @author admin
 * @since 2020-12-12
 */
@Data
@TableName(value = "info_information", autoResultMap = true)
public class InfoInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 类别
     * 1=草莓资讯
     * 2=首页轮播图
     */
    @TableField("Category")
    private Integer category;

    /**
     * 标题
     */
    @TableField("Title")
    private String title;

    /**
     * 简介
     */
    @TableField("Summary")
    private String summary;

    /**
     * 内容
     */
    @TableField("Content")
    private String content;

    /**
     * 封面图片
     */
    @TableField("CoverPic")
    private String coverPic;

    /**
     * 视频链接
     */
    @TableField(value = "Videos",typeHandler = JacksonTypeHandler.class)
    private List<Map<String, Object>> videos;

    /**
     * 是否上架
     */
    @TableField("Display")
    private Integer display;

    /**
     * 删除标记
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 是否置顶
     * 0=未置顶
     * 1=已置顶
     */
    @TableField("GetTop")
    private Integer getTop;

    /**
     * 业务数据
     */
    @TableField(value = "BizData", typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> bizData;

}
